MyUserPaneIdleProc
NEW WITH THE APPEARANCE MANAGER
Performs idle processing.The Control Manager declares the type for an application-defined user pane idle function as follows:
typedef pascal void (*ControlUserPaneIdleProc)(ControlHandle control);The Control Manager defines the data typeControlUserPaneIdleUPP
to identify the universal procedure pointer for this application-defined function:
typedef UniversalProcPtr ControlUserPaneIdleUPP;You typically use theNewControlUserPaneIdleProc
macro like this:
ControlUserPaneIdleUPP
myControlUserPaneIdle
UPP;
myControlUserPaneIdle
UPP = NewControlUserPaneIdleProc
(MyUserPaneIdle
);You typically use the
CallControlUserPaneIdleProc
macro like this:
Call
ControlUserPaneIdleProc
(myControlUserPaneIdle
UPP, control);Here's how to declare the function
MyUserPaneIdleProc:
pascal void MyUserPaneIdleProc (ControlHandle control);
control
- A handle to the control for which you wish to perform idle processing.
DISCUSSION
This function will only get called if you've set thekControlWantsIdle
feature bit on creation of the user pane control. Once you have created the functionMyUserPaneIdleProc
, passkControlUserPaneIdleProcTag
in thetagName
parameter ofSetControlData
.